package com.cake.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.cake.entity.base.BaseEntity;

public class XxShippingMethod extends BaseEntity {
    /**
     * 配送方式主键
     * 表字段 : xx_shipping_method.id
     */
    private Long id;

    /**
     * 配送名称
     * 表字段 : xx_shipping_method.name
     */
    private String name;

    /**
     * 是否同城(圈子)配送
     * 表字段 : xx_shipping_method.city_ship
     */
    private Boolean cityShip;

    /**
     * 配送首重量
     * 表字段 : xx_shipping_method.first_weight
     */
    private Integer firstWeight;

    /**
     * 配送续重量
     * 表字段 : xx_shipping_method.continue_weight
     */
    private Integer continueWeight;

    /**
     * 首重配送价格
     * 表字段 : xx_shipping_method.first_price
     */
    private BigDecimal firstPrice;

    /**
     * 续重配送价格
     * 表字段 : xx_shipping_method.continue_price
     */
    private BigDecimal continuePrice;

    /**
     * 图标地址
     * 表字段 : xx_shipping_method.icon
     */
    private String icon;

    /**
     * 订单大于多少的限定值   来判断计算费用
     * 表字段 : xx_shipping_method.limit_value
     */
    private String limitValue;

    /**
     * 价格运算表达式
     * 表字段 : xx_shipping_method.price_expression
     */
    private String priceExpression;

    /**
     * 默认物流公司主键
     * 表字段 : xx_shipping_method.default_delivery_corp
     */
    private Long defaultDeliveryCorp;

    /**
     * 配送方式排序位
     * 表字段 : xx_shipping_method.orders
     */
    private Integer orders;

    /**
     * 配送方式创建时间
     * 表字段 : xx_shipping_method.create_date
     */
    private Date createDate;

    /**
     * 配送方式最新修改时间
     * 表字段 : xx_shipping_method.modify_date
     */
    private Date modifyDate;

    /**
     * 介绍
     * 表字段 : xx_shipping_method.description
     */
    private String description;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_shipping_method
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Boolean getCityShip() {
        return cityShip;
    }

    public void setCityShip(Boolean cityShip) {
        this.cityShip = cityShip;
    }

    public Integer getFirstWeight() {
        return firstWeight;
    }

    public void setFirstWeight(Integer firstWeight) {
        this.firstWeight = firstWeight;
    }

    public Integer getContinueWeight() {
        return continueWeight;
    }

    public void setContinueWeight(Integer continueWeight) {
        this.continueWeight = continueWeight;
    }

    public BigDecimal getFirstPrice() {
        return firstPrice;
    }

    public void setFirstPrice(BigDecimal firstPrice) {
        this.firstPrice = firstPrice;
    }

    public BigDecimal getContinuePrice() {
        return continuePrice;
    }

    public void setContinuePrice(BigDecimal continuePrice) {
        this.continuePrice = continuePrice;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getLimitValue() {
        return limitValue;
    }

    public void setLimitValue(String limitValue) {
        this.limitValue = limitValue == null ? null : limitValue.trim();
    }

    public String getPriceExpression() {
        return priceExpression;
    }

    public void setPriceExpression(String priceExpression) {
        this.priceExpression = priceExpression == null ? null : priceExpression.trim();
    }

    public Long getDefaultDeliveryCorp() {
        return defaultDeliveryCorp;
    }

    public void setDefaultDeliveryCorp(Long defaultDeliveryCorp) {
        this.defaultDeliveryCorp = defaultDeliveryCorp;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", cityShip=").append(cityShip);
        sb.append(", firstWeight=").append(firstWeight);
        sb.append(", continueWeight=").append(continueWeight);
        sb.append(", firstPrice=").append(firstPrice);
        sb.append(", continuePrice=").append(continuePrice);
        sb.append(", icon=").append(icon);
        sb.append(", limitValue=").append(limitValue);
        sb.append(", priceExpression=").append(priceExpression);
        sb.append(", defaultDeliveryCorp=").append(defaultDeliveryCorp);
        sb.append(", orders=").append(orders);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}